package cn.foolishbird.crow.enumeration;

import cn.foolishbird.crow.core.CrowEnum;
import cn.foolishbird.crow.enumeration.annotation.DefDictionary;
import cn.foolishbird.crow.enumeration.annotation.Dictionary;

/**
 * @author foolish bird
 * @email luohongtu@foolishbird.cn
 */
@Dictionary(value = "ResourceTypeEnum", name = "资源枚举")
public enum ResourceTypeEnum implements CrowEnum {

    @DefDictionary
    MENU(10, "菜单"),

    PAGE(20, "页面"),

    BUTTON(30, "按钮"),

    CONTROLLER(1, "接口")
    ;

    /**
     * 资料类型
     */
    private final Integer resourceType;

    /**
     *
     */
    private final String content;

    ResourceTypeEnum(Integer menuType, String desc) {
        this.resourceType = menuType;
        this.content = desc;
    }


    @Override
    public Integer value() {
        return this.resourceType;
    }

    @Override
    public String content() {
        return this.content;
    }

}
